package cc.mcggdd.leah.boot.stock.converter;

import org.mapstruct.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import cc.mcggdd.leah.boot.stock.model.entity.StockHolding;
import cc.mcggdd.leah.boot.stock.model.form.StockHoldingForm;

/**
 * 持仓管理对象转换器
 *
 * @author 
 * @since 2025-02-13 09:38
 */
@Mapper(componentModel = "spring")
public interface StockHoldingConverter{

    StockHoldingForm toForm(StockHolding entity);

    StockHolding toEntity(StockHoldingForm formData);
}